home *** CD-ROM | disk | FTP | other *** search
- Digitized Voice Programmer's Toolkit for the PC
- -----------------------------------------------
-
- Version 2.0
-
- Copyright (c) 1988,1989,1990,1991 Farpoint Software
-
- Recording Procedure Call Documentation
-
- ------------------------------------------------------------------------------
-
- Calibration routine
- -------------------
-
- Prototype:
-
- long pascal far RCALIBRATE(void);
-
-
- This must be called once before RECORDVOICE is called. RECORDVOICE may be
- called multiple times thereafter, as long as the program remains in memory.
-
-
- Return value:
-
- Low word Meaning
- -------- -------
- 0 success
- 1 this CPU is too slow to accomplish normal-speed playback
- 2 operation not possible under Microsoft Windows
- in "Enhanced" mode
-
- The return value high word is the actual speed calibration constant for this
- computer.
-
-
- ------------------------------------------------------------------------------
-
- Force Calibration Routine
- -------------------------
-
- Prototype:
-
- void pascal far RSETCAL(unsigned int calfactor);
-
-
- Normally never used, this call can be used to set the internal calibration
- constant normally determined by the RCALIBRATE routine. A possible use for
- RSETCAL would be to alter the recording sample rate.
-
-
- There is no return value.
-
-
- ------------------------------------------------------------------------------
-
- Recording Routine
- -----------------
-
- Prototype:
-
- long pascal far RECORDVOICE( unsigned char far *buffer,
- long bytecount,
- int comport );
-
-
- This routine actually performs the voice recording. The CPU will be fully
- occupied by this operation. Any keypress during playback will terminate the
- operation. The keystroke will still be in the BIOS keystroke buffer when
- RECORDVOICE returns. Note that literally ANY keyboard action, including key
- releases and shift keys, will be sufficient to end playback. There is also
- a "stop" switch on the digitizer board which may be used to terminate
- recording.
-
- The pointer "buffer" passed to the routine will be treated as a huge pointer,
- with 64k segment boundaries taken care of automatically. Also, the "bytecount"
- parameter is a 32 bit number. Thus, the practical limit to the size of one
- contiguous block of data to be recorded is the amount of memory available to
- your program.
-
-
- The return value indicates the actual number of bytes recorded. This number
- will be less than "bytecount" unless the routine was allowed to run until
- the buffer was full.
-
-
- ------------------------------------------------------------------------------
-
- Memory Available Routine
- ------------------------
-
- Prototype:
-
- long pascal far GETMEMAVAIL(void);
-
-
- This is just a convenient way to find out how much memory can be allocated
- from DOS, under the assumption that it will all be used to create the largest
- possible recording buffer.
-
-
- The return value is the number of bytes available.
-